/// <summary>
/// 加密byte数组
/// </summary>
/// <param name="baTarget">byte[]对象</param>
/// <param name="key">key</param>
/// <returns>key</returns>
internal static byte[] EncryptToByte(byte[] baTarget, long key)
{
byte[] Result = new byte[baTarget.Length];
for (int i = 0; i < baTarget.Length; i )
{
Result[i] = (byte)(baTarget[i] ^ key);
}
return Result;
}
评论